# coding=utf-8
# !/usr/bin/python3

import requests

headers = {
    'accept': '*/*',
    'accept-language': 'zh-CN,zh;q=0.9',
    'cache-control': 'no-cache',
    'origin': 'https://www.dongchedi.com',
    'pragma': 'no-cache',
    'priority': 'u=0',
    'referer': 'https://www.dongchedi.com/',
    'sec-ch-ua': '"Chromium";v="128", "Not;A=Brand";v="24", "Google Chrome";v="128"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'sec-fetch-dest': 'font',
    'sec-fetch-mode': 'cors',
    'sec-fetch-site': 'cross-site',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36',
}

response = requests.get('https://lf6-awef.bytetos.com/obj/awesome-font/c/96fc7b50b772f52-700.woff2', headers=headers)

    # woff文件存本地
with open("./font.woff2", "wb") as f:
    f.write(response.content)